package com.shengyin.ec.service.order;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shengyin.ec.model.dao.order.OrderDetailDao;
import com.shengyin.ec.model.entity.OrderItem;

@Service(value ="orderDetailService")
public class OrderDetailServiceImpl implements OrderDetailService{

	@Autowired
	OrderDetailDao orderDetailDao;
	
	//add by lcl 2012-09-06
	public List<OrderItem> getOrderDetailByOrderId(long id){
		return orderDetailDao.getOrderDetailByOrderId(id);
	}

	@Override
	public void createOrderDetail(OrderItem orderDetail) {
		orderDetailDao.save(orderDetail);		
	}

	@Override
	public void updateOrderDetail(OrderItem orderDetail) {
		
	}
}
